#include <iostream>
#include <time.h>
#include "Clock.h"

using namespace std;
using namespace Green;


Clock::Clock()
{
}
	
Clock::~ Clock()
{
}


void Clock::CountDown(unsigned count)
{
	 timer = count;

	cout << "Cooking Food" << endl;
	
	for(int i=0; i<count; i++)
	{
		cout << timer << " " ;
		timer--;
	}

	cout << endl;

	cout << "Food done. Enjoy :)" << endl;
		
}


void Clock::displayTime()
{
	time_t rawtime;
	struct tm * timeinfo;
	char buffer [80];

	time ( &rawtime );
	timeinfo = localtime ( &rawtime );

	strftime (buffer,80,"Now it's %I:%M%p.",timeinfo);
	puts (buffer);
	cout << endl;
}